<template>
  <a-modal :title="title" :visible="visible" :footer="null" @cancel="handleCancel" :width="1200">
    <a-table
      v-if="dataSource != []"
      :columns="columns"
      :data-source="dataSource"
      rowKey="id"
      :pagination="false"
      :loading="loading"
      class="antableClass"
      :scroll="{ y: 500 }"
    >
    </a-table>
  </a-modal>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { httpAction, getAction } from '@/api/manage'
export default {
  name: 'CheckOrganModal',
  mixins: [JeecgListMixin],
  props: {
    urlList: {
      type: String,
      default: '',
    },
    columns: {
      type: Array,
      default: [],
    },
  },
  data() {
    return {
      visible: false,
      url: {
        list: '',
      },
      queryParam: {},
      disableMixinCreated: true,
      title: '',
    }
  },
  methods: {
    show(queryParam, title) {
      this.visible = true
      this.title = title
      this.url.list = this.urlList
      this.queryParam = { ...queryParam }
      this.loadData(1)
    },
    handleCancel() {
      this.visible = false
    },
  },
}
</script>

<style lang="less" scoped>
// @import '~@assets/less/tableTheme.less';
@import '~@assets/less/common.less';
.ant-table-fixed-left .ant-table-thead > tr > th:last-child {
  border-top-right-radius: 0;
  background-color: red;
  padding: 0;
}
</style>